Don't use a bare checkout of the index
authorAlex Crichton <alex@alexcrichton.com>
Tue, 16 May 2017 14:07:36 +0000 (07:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 16 May 2017 15:15:27 +0000 (08:15 -0700)
commit00e5f9571f40450bf538c32ffb0c88374ea04372
tree020c2e06c079f83971f294b0d4017c66c6f4ef67
parentd5bfd58a03c9ce5bcf37aa712b8c01ffcaebe387
Don't use a bare checkout of the index

Both old and new Cargo share the same index, so be sure to maintain
compatibility by initializing a non-bare repository for the index. Note that
a nightly Cargo still won't check out the index, but when an older Cargo comes
along and tries to check it out then it'll work.

Closes #4058
src/cargo/sources/registry/remote.rs